package com.sskj.bibi.bean;

import android.text.TextUtils;

import java.math.BigDecimal;

public class UserCoinInfo {
    /**
     * id :
     * stockCode : USDT
     * stockName :
     * stockType :
     * usableFund : 18720.6
     * frostFund : 43
     * inAllFee :
     * outAllFee :
     */

    private String id;
    private String stockCode;

    private String usableFund;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }


    public String getUsableFund() {
        return TextUtils.isEmpty(usableFund) ? 0+"" : new BigDecimal(usableFund+"").toPlainString();
    }

    public void setUsableFund(String usableFund) {
        this.usableFund = usableFund;
    }
}
